package com.qf.mapper;

import com.qf.dto.ContractorDto;
import com.qf.model.Contractor;
import com.qf.model.Developer;
import com.qf.model.Project;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ContractorMapper {

    //当前页结果
    public List<Contractor> findPage(@Param("currentPage")Integer currentPage, @Param("pageSize")Integer pageSize, @Param("queryString")String queryString);

    //总记录数
//    @Select("select count(*) from contractor where status=1")
    public Long count(String queryString);
    //增加开发商
    public int add(Contractor contractor);

    //根据cid查询contractor
    public ContractorDto findById( String cid);

    //修改contractor
    int editOne(Contractor contractor);

    //删除contractor
    int delete(String cid);

//    Contractor findByPid(int pid);
}
